<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>引导页4</title>
  <style>
    /* 基础样式重置 */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Helvetica', 'Arial', sans-serif;
    }

    /* 自定义工具类 */
    .text-shadow {
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    }

    .btn-hover {
      transition: all 0.3s ease;
    }

    .btn-hover:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

    /* 主体样式 */
    body {
      background-color: #F7F9FC;
      min-height: 100vh;
      display: flex;
      justify-content: center;
    }

    .app-container {
      width: 100%;
      max-width: 480px;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    /* 插图区域 */
    .illustration-section {
      flex: 1;
      background-color: white;
      padding: 40px 20px;
      position: relative;
      overflow: hidden;
    }

    /* 蓝色圆点背景 */
    .dot-pattern {
      position: absolute;
      bottom: 0;
      right: 0;
      width: 240px;
      height: 240px;
      background-image: radial-gradient(#165DFF 5%, transparent 5%);
      background-size: 20px 20px;
      opacity: 0.15;
      border-radius: 50%;
      transform: translate(25%, 25%);
    }

    /* 插图容器 */
    .illustration-container {
      position: relative;
      width: 100%;
      height: 100%;
      max-height: 320px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    /* 书籍 */
    .book {
      position: absolute;
      width: 220px;
      height: 160px;
      background-color: #FFDD55;
      border-radius: 10px;
      box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
      z-index: 1;
    }

    .book::before {
      content: '';
      position: absolute;
      left: 50%;
      top: 0;
      width: 4px;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.1);
      transform: translateX(-50%);
    }

    .book-page {
      position: absolute;
      top: 10px;
      left: 10px;
      right: 10px;
      bottom: 10px;
      background-color: #FFF8E1;
      border-radius: 5px;
    }

    /* 左侧女性 */
    .female-person {
      position: absolute;
      left: 30px;
      bottom: 40px;
      width: 100px;
      height: 180px;
      z-index: 2;
    }

    .female-head {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background-color: #424242;
      margin: 0 auto;
      position: relative;
    }

    .female-hair {
      position: absolute;
      top: -5px;
      left: 50%;
      transform: translateX(-50%);
      width: 55px;
      height: 55px;
      background-color: #424242;
      border-radius: 50%;
      z-index: -1;
    }

    .female-body {
      width: 60px;
      height: 90px;
      background-color: #424242;
      border-radius: 30px 30px 0 0;
      margin: 5px auto 0;
    }

    .female-skirt {
      width: 80px;
      height: 40px;
      background-color: #FFFFFF;
      margin: -5px auto 0;
      border-radius: 0 0 40px 40px;
      border: 2px solid #424242;
    }

    .female-legs {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 5px;
    }

    .female-leg {
      width: 12px;
      height: 25px;
      background-color: #424242;
      border-radius: 0 0 6px 6px;
    }

    .female-hand {
      position: absolute;
      top: 70px;
      right: -5px;
      width: 15px;
      height: 15px;
      background-color: #424242;
      border-radius: 50%;
    }

    /* 右侧男性 */
    .male-person {
      position: absolute;
      right: 30px;
      bottom: 40px;
      width: 120px;
      height: 200px;
      z-index: 2;
    }

    .male-head {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background-color: #424242;
      margin: 0 auto;
      position: relative;
    }

    .male-hair {
      position: absolute;
      top: -5px;
      left: 50%;
      transform: translateX(-50%);
      width: 55px;
      height: 40px;
      background-color: #212121;
      border-radius: 50% 50% 0 0;
      z-index: -1;
    }

    .male-body {
      width: 70px;
      height: 100px;
      background-color: white;
      border-radius: 30px 30px 0 0;
      margin: 5px auto 0;
      border: 2px solid #424242;
      position: relative;
    }

    .male-tie {
      position: absolute;
      top: 30px;
      left: 50%;
      transform: translateX(-50%);
      width: 8px;
      height: 30px;
      background-color: #165DFF;
    }

    .male-tie::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: -8px;
      width: 24px;
      height: 15px;
      background-color: #165DFF;
      clip-path: polygon(50% 100%, 0 0, 100% 0);
    }

    .male-pants {
      width: 60px;
      height: 40px;
      background-color: #424242;
      margin: -5px auto 0;
      border-radius: 0 0 30px 30px;
    }

    .male-legs {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 5px;
    }

    .male-leg {
      width: 12px;
      height: 30px;
      background-color: #424242;
      border-radius: 0 0 6px 6px;
    }

    .pointer {
      position: absolute;
      top: 65px;
      left: -15px;
      width: 35px;
      height: 4px;
      background-color: #424242;
      transform: rotate(-30deg);
      transform-origin: right center;
    }

    .pointer::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      width: 8px;
      height: 8px;
      background-color: #424242;
      transform: translateY(-50%) rotate(45deg);
      border-radius: 2px;
    }

    /* 内容区域 */
    .content-section {
      background: linear-gradient(to bottom, #165DFF 0%, #0F4CD8 100%);
      color: white;
      padding: 30px 20px;
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }

    .title {
      font-size: 26px;
      font-weight: bold;
      text-align: center;
      margin-bottom: 20px;
      line-height: 1.4;
    }

    .description {
      font-size: 15px;
      line-height: 1.6;
      text-align: center;
      margin-bottom: 30px;
      flex-grow: 1;
    }

    /* 分页指示器 */
    .pagination {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-bottom: 25px;
    }

    .page-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.3);
    }

    .page-dot.active {
      background-color: white;
      transform: scale(1.3);
    }

    /* 下一步按钮 */
    .next-button {
      background-color: white;
      color: #165DFF;
      border: none;
      border-radius: 30px;
      padding: 14px;
      font-size: 17px;
      font-weight: bold;
      width: 100%;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* 动画效果 */
    .fade-in {
      animation: fadeIn 0.8s ease forwards;
      opacity: 0;
    }

    .book {
      animation-delay: 0.1s;
    }

    .female-person {
      animation-delay: 0.3s;
    }

    .male-person {
      animation-delay: 0.5s;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* 响应式调整 */
    @media (max-width: 320px) {
      .title {
        font-size: 22px;
      }

      .description {
        font-size: 14px;
      }

      .book {
        width: 180px;
        height: 130px;
      }

      .female-person,
      .male-person {
        transform: scale(0.9);
      }
    }

    @media (min-height: 700px) {
      .illustration-section {
        padding-top: 60px;
      }
    }
  </style>
</head>

<body>
  <div class="app-container">
    <!-- 插图区域 -->
    <div class="illustration-section">
      <div class="dot-pattern"></div>
      <div class="illustration-container">
        <!-- 书籍 -->
        <div class="book fade-in">
          <div class="book-page"></div>
        </div>

        <!-- 左侧女性 -->
        <div class="female-person fade-in">
          <div class="female-head">
            <div class="female-hair"></div>
          </div>
          <div class="female-body"></div>
          <div class="female-skirt"></div>
          <div class="female-legs">
            <div class="female-leg"></div>
            <div class="female-leg"></div>
          </div>
          <div class="female-hand"></div>
        </div>

        <!-- 右侧男性 -->
        <div class="male-person fade-in">
          <div class="male-head">
            <div class="male-hair"></div>
          </div>
          <div class="male-body">
            <div class="male-tie"></div>
          </div>
          <div class="male-pants"></div>
          <div class="male-legs">
            <div class="male-leg"></div>
            <div class="male-leg"></div>
          </div>
          <div class="pointer"></div>
        </div>
      </div>
    </div>

    <!-- 内容区域 -->
    <div class="content-section">
      <h2 class="title text-shadow">以防万一</h2>
      <p class="description">
        我们协助您准备遗嘱书的制作、死后事务委托合同和任意监护合同等，无论何时都能为您提供帮助。
      </p>

      <div class="pagination">
        <div class="page-dot"></div>
        <div class="page-dot"></div>
        <div class="page-dot active"></div>
      </div>

      <button class="next-button btn-hover" id="nextBtn">下一步</button>
    </div>
  </div>

  <script>
    // 添加页面加载动画
    document.addEventListener('DOMContentLoaded', () => {
      const elements = document.querySelectorAll('.fade-in');
      elements.forEach(el => el.style.opacity = '0');

      setTimeout(() => {
        elements.forEach(el => {
          el.style.transition = 'opacity 0.8s ease, transform 0.8s ease';
          el.style.opacity = '1';
          el.style.transform = 'translateY(0)';
        });
      }, 100);

      // 下一步按钮点击事件
      document.getElementById('nextBtn').addEventListener('click', function () {
        window.location.href = '登陆前-登录页.html';
      });
    });
  </script>
</body>

</html>